package com.rabbit.eap.framework.shiro.convert;

import com.rabbit.eap.framework.shiro.jwt.JwtToken;
import com.rabbit.eap.framework.shiro.vo.JwtTokenRedisVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @projectName eap
 * @packageName com.rabbit.eap.framework.shiro.convert
 * @className ShiroMapstructConvert
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/4/19 19:39
 * <p>Description: ShiroMapstructConvert
 * Shiro包下使用mapstruct对象属性复制转换器
 * </p>

 */
@Mapper
public interface ShiroMapstructConvert {
    ShiroMapstructConvert INSTANCE = Mappers.getMapper(ShiroMapstructConvert.class);

    /**
     * JwtToken对象转换成JwtTokenRedisVo
     *
     * @param jwtToken
     * @return
     */
    JwtTokenRedisVO jwtTokenToJwtTokenRedisVo(JwtToken jwtToken);
}
